package com.csu.dao;

import com.csu.entiry.BorrowInfo;

import java.util.List;

public interface BorrowInfoDao {

    List<BorrowInfo> getBorrowInfoList(int current, int size, String key);

    int getTotal(int current, int size, String key);

    boolean addInfo(BorrowInfo borrowInfo);

    boolean removeInfo(int borrowId);

    boolean updateInfo(BorrowInfo borrowInfo);

    BorrowInfo getByBorrowId(int borrowId);

    List<BorrowInfo> searchListByKey(String key);
}
